package com.example.stringbufferlogger.dto;

import lombok.Data;

import java.util.Map;

@Data
public class HttpRequest {
    private String url;
    private String method;
    private Map<String,String> headers;
    private String body;
    private String session;
    private Map<String,String> sessionattributes;
    private Map<String,String> requestParams;

    public Map<String, String> getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(Map<String, String> requestParams) {
        this.requestParams = requestParams;
    }

    public Map<String,String> getSessionattributes() {
        return sessionattributes;
    }

    public void setSessionattributes(Map<String,String> sessionattributes) {
        this.sessionattributes = sessionattributes;
    }

    public String getSessionId() {
        return session;
    }

    public void setSessionId(String sessionId) {
        this.session = sessionId;
    }

    // getters and setters
    public String getUrl() { return url; }
    public void setUrl(String url) { this.url = url; }
    public String getMethod() { return method; }
    public void setMethod(String method) { this.method = method; }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }

    public String getBody() { return body; }
    public void setBody(String body) { this.body = body; }
}
